libsodium = dependency('libsodium', version: '>= 1.0.11')

macaroons_sources = [
	'base64.c',
	'base64.h',
	'config.h',
	'constants.h',
	'custom-config.h',
	'macaroons.c',
	'macaroons.h',
	'macaroons-inner.h',
	'packet.c',
	'packet.h',
	'port.c',
	'port.h',
	'slice.c',
	'slice.h',
	'sysendian.h',
	'v1.c',
	'v1.h',
	'v2.c',
	'v2.h',
	'varint.c',
	'varint.h',
]

cmacaroons_lib = static_library(
	'libcmacaroons',
	macaroons_sources,
	dependencies : [ libsodium ],
	c_args : '-DHAVE_CONFIG_H',
	install : false
)
